﻿using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;

public abstract class IBaseUI
{
    public GameObject mRootUI;

    // public 抽象方法一定要实现
    // 虚方法不一定要实现
    public virtual void Init()
    { 
        mFacade = GameFacade.Instance; // 方便子类使用
    }

    public virtual void Update() { }

    public virtual void Release() { }

    protected void Show()
    {
        mRootUI.SetActive(true);
    }
    protected void Hide()
    {
        mRootUI.SetActive(false);
    }

    protected GameFacade mFacade;

}